The data set contains information about three species of IRIS flowers namely:
Four features are collected from each sample, sepal-length, sepal-width, petal-length and petal-width in centi-meters.
# Common imports
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import plotly.express as px
iris_df = pd.read_csv("./data/IRIS.csv")
iris_df.sample(5)
| sepal_length | sepal_width | petal_length | petal_width | species | |
|---|---|---|---|---|---|
| 75 | 6.6 | 3.0 | 4.4 | 1.4 | Iris-versicolor |
| 59 | 5.2 | 2.7 | 3.9 | 1.4 | Iris-versicolor |
| 114 | 5.8 | 2.8 | 5.1 | 2.4 | Iris-virginica |
| 80 | 5.5 | 2.4 | 3.8 | 1.1 | Iris-versicolor |
| 38 | 4.4 | 3.0 | 1.3 | 0.2 | Iris-setosa |
fig = px.scatter_3d(iris_df, x='sepal_length', y='sepal_width', z='petal_width',
color='species')
fig.show()